<!DOCTYPE html>
<html >
<head>
<meta charset="utf-8">
<title>体检预约</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="css/mui.css">
<link rel="stylesheet" href="css/app.css">
<link rel="stylesheet" href="css/weui.css">
 <script type="text/javascript" src="js/jquery-2.0.0.min.js"></script>
 <script type="text/javascript" src="js/utile.js"></script>
        <script type="text/javascript">
$(document).ready(function(){
  $(".btInp").mousedown(function(){
    $(this).css("border","1px solid #30a5ff");
  });
   $(".btInp").mouseout(function(){
    $(this).css("border","1px solid #c9c9c9");
  });
   $(".orderBtn").hide();
   var url1 = getURL() + "/mobile/checkIsAble";
	  $.ajax({
		  type: 'POST',
		  url: url1,
		  data: {},
		  success: function(data){
			if(data.isAble){
				$(".levelupBtn").show();
				 var url = getURL() + "/mobile/selfMainInit";
				  var pram = {};
				  $.ajax({
					  type: 'POST',
					  url: url,
					  data: pram,
					  success: function(data){
						if(data.hasInit){
							$(".orderBtn").show();
						} else {
							$(".orderBtn").hide();
						}
					  },
					  dataType: "json"
					});
			} else {
				$(".orderBtn").hide();
				$(".levelupBtn").hide();
			}
		  },
		  dataType: "json"
		});
  
   
   
});
   function order(){  
	  window.location.href = "order.html";
   }
   function levelup(){  
	   alert("请在网页端操作升级或购买");
	  //window.location.href = "levelup.html";
   }
</script>
</head> 

<body >
<header id="header" class="mui-bar mui-bar-nav"> <a onclick="history.go(-1)" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" style="color:#fff;"></a>
  <h1 class="mui-title">体检预约</h1>
</header>
<div class="container" >
<div style="border-bottom:1px solid #bababa;padding-bottom:10px;">
  <p>以下是您的个人资料及条件预约信息...</p>
  <div class="button_sp_area"> <a class="weui_btn weui_btn_mini weui_btn_plain_blue orderBtn" display="none"  onclick="order()">预约</a> <a  onclick="levelup()" class="weui_btn weui_btn_mini weui_btn_plain_blue levelupBtn" style="margin:0;">升级</a> </div>
  </div>
  
  
</div>
</body>
</html>